# 修复pageB.vue编码问题的脚本
$content = Get-Content 'pages/index/component/pageB.vue' -Encoding UTF8

# 修复所有乱码
$content = $content -replace '蒙��\?', '蒙版'
$content = $content -replace '容��\?', '容器' 
$content = $content -replace '简��\?', '简介'
$content = $content -replace '状��\?', '状态'
$content = $content -replace '流��\?', '流'
$content = $content -replace '宽��\?', '宽度'
$content = $content -replace '内��\?', '内容'
$content = $content -replace '活��\?', '活动'
$content = $content -replace '载��\?', '载中'
$content = $content -replace '对��\?', '对象'
$content = $content -replace '数��\?', '数据'
$content = $content -replace '加��\?', '加载'
$content = $content -replace '缓��\?', '缓存'
$content = $content -replace '话��\?', '话题'
$content = $content -replace '圈��\?', '圈子'
$content = $content -replace '列��\?', '列表'
$content = $content -replace '设��\?', '设置'
$content = $content -replace '处��\?', '处理'
$content = $content -replace '筛��\?', '筛选'
$content = $content -replace '排��\?', '排序'
$content = $content -replace '��\?', '•'
$content = $content -replace '样��\?', '样式'
$content = $content -replace '效��\?', '效果'
$content = $content -replace '页��\?', '页面'
$content = $content -replace '点��\?', '点赞'
$content = $content -replace '行��\?', '行者'
$content = $content -replace '能��\?', '能手'
$content = $content -replace '分��\?', '分享'
$content = $content -replace '技��\?', '技巧'
$content = $content -replace '好��\?', '好书'
$content = $content -replace '打��\?', '打卡'
$content = $content -replace '制��\?', '制定'
$content = $content -replace '索��\?', '索者'
$content = $content -replace '精��\?', '精选'
$content = $content -replace '最��\?', '最新'

# 修复tabs数组
$content = $content -replace "tabs: \['精品', '推荐', '热门'\]", "tabs: ['最新', '精选', '推荐', '热门']"

# 修复点赞相关的引号问题
$content = $content -replace 'currentUser\\', 'currentUser'
$content = $content -replace ':class="item\.like_user_id\.includes\(" currentUser\\', ':class="item.like_user_id.includes(''currentUser'''

# 保存文件
Set-Content 'pages/index/component/pageB.vue' -Value $content -Encoding UTF8

Write-Host "编码问题修复完成！" 